﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string[] args1 = textBox1.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None);
            string[] args2 = textBox2.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None);
            label1.Text = args1.Length.ToString();
            StringBuilder sb = new StringBuilder();
            foreach (string code in args1) 
            {
                if (!args2.Contains(code)) 
                {
                    sb.AppendLine(code);
                }
            }

            textBox3.Text = sb.ToString();
        }
    }
}
